#pragma once
#pragma warning(disable : 4996)
#include "..\utils\StringUtils.h"

namespace ds {
// --------------------------------------
// This is only the virtual base class
// for every asset in the engine
// --------------------------------------
class Asset {

public:
	Asset(const char* name) {
		assert(strlen(name) < 48);
		m_Hash = string::murmur_hash(name);
		strncpy(m_Name,name,48);
	}
	virtual ~Asset() {}
	const char* getName() {
		return m_Name;
	}
	IdString& getHash() {
		return m_Hash;
	}
private:
	char m_Name[48];
	IdString m_Hash;
};

};

